Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIR] Enhance the SimplifyCfg pass to merge consecutive blocks #33552

Merged
merged 1 commit into from
May 14, 2016

Conversation

dotdash
Copy link
Contributor

@dotdash dotdash commented May 11, 2016

Updated from #30238, including the changes suggested by @Aatch.

@rust-highfive
Copy link
Collaborator

r? @arielb1

(rust_highfive has picked a reviewer for you, use r? to override)

@bors
Copy link
Contributor

bors commented May 11, 2016

☔ The latest upstream changes (presumably #33425) made this pull request unmergeable. Please resolve the merge conflicts.


while mir.basic_block_data(target).statements.is_empty() {
// NB -- terminator may have been swapped with `None`
// below, in which case we have a cycle and just want
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I think the below here became above. Could just say in the function merge_consecutive_blocks instead.

@luqmana
Copy link
Member

luqmana commented May 11, 2016

LGTM! 👍

r=me on rebase

}
}

pub fn build_predecessor_map(mir: &Mir) -> PredecessorMap {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: to me it seems like it ought to be a PredecessorMap::from_mir or something.

@dotdash
Copy link
Contributor Author

dotdash commented May 11, 2016

Rebased and nits addressed.

@bors r=luqmana

@bors
Copy link
Contributor

bors commented May 11, 2016

📌 Commit 1ebb07e has been approved by luqman

@bors
Copy link
Contributor

bors commented May 11, 2016

💡 This pull request was already approved, no need to approve it again.

@bors
Copy link
Contributor

bors commented May 11, 2016

📌 Commit 1ebb07e has been approved by luqmana

Manishearth added a commit to Manishearth/rust that referenced this pull request May 12, 2016
[MIR] Enhance the SimplifyCfg pass to merge consecutive blocks

Updated from rust-lang#30238, including the changes suggested by @Aatch.
eddyb added a commit to eddyb/rust that referenced this pull request May 12, 2016
[MIR] Enhance the SimplifyCfg pass to merge consecutive blocks

Updated from rust-lang#30238, including the changes suggested by @Aatch.
bors added a commit that referenced this pull request May 12, 2016
@eddyb
Copy link
Member

eddyb commented May 13, 2016

@bors r=luqmana

@bors
Copy link
Contributor

bors commented May 13, 2016

📌 Commit 8ad6d27 has been approved by luqmana

eddyb added a commit to eddyb/rust that referenced this pull request May 13, 2016
[MIR] Enhance the SimplifyCfg pass to merge consecutive blocks

Updated from rust-lang#30238, including the changes suggested by @Aatch.
Manishearth added a commit to Manishearth/rust that referenced this pull request May 14, 2016
[MIR] Enhance the SimplifyCfg pass to merge consecutive blocks

Updated from rust-lang#30238, including the changes suggested by @Aatch.
bors added a commit that referenced this pull request May 14, 2016
Rollup of 9 pull requests

- Successful merges: #33544, #33552, #33554, #33555, #33560, #33566, #33572, #33574, #33576
- Failed merges:
@bors bors merged commit 8ad6d27 into rust-lang:master May 14, 2016
@dotdash dotdash deleted the scfg branch May 17, 2016 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants